/*
 * JobStorage
 * Created: Dec 29, 2006 
 * by abargnesi<mailto:abargnesi@aquent.com/>
 */
package com.den4.jynform;

import java.util.Map;

public interface JobStorage {
    
    /**
     * Puts a <code>JobBean</code> in the storage. 
     * @param job
     * @return whether the job was stored or not.
     */
    public boolean storeJob(JobBean job);
    
    /**
     * Retrieves a <code>JobBean</code> from the storage using
     * a "Query By Example" technique.
     * @param job
     * @return the job that matches the <code>job</code> entered.
     */
    public JobBean getJob(JobBean job);
    
    /**
     * Retrieves a <code>Map</code> of <code>JobBean</code> objects
     * representing all of the jobs in the storage.
     * @return
     */
    public Map<Integer,JobBean> getJobs(); 
}
